package caiziyou.com.designpattern.proxy.cglibproxy;

public class Client {
	public static void main(String[] args) {
		ProxyFactory proxyFactory = new ProxyFactory(new TeacherDao());
		TeacherDao proxyInstance = (TeacherDao)proxyFactory.getProxyInstance();
		String res = proxyInstance.teach();
		System.out.println("获取返回值"+res);
	}
}
